How Can I Convert the Value - listViewRecs.SelectedItems[0].SubItems[0] - to Integer? - C#.NET
Posted
by peace
on Stack Overflow
See other posts from Stack Overflow
or by peace
Published on 2010-05-22T21:55:09Z
Indexed on
2010/05/22
22:00 UTC
Read the original article
Hit count: 290
int val = lstvRecordsCus.SelectedItems[0].SubItems[0];
The returned value is an int in a string datatype. I need the right hand side to return the value in int instead of string.
I tried Convert.ToInt32, it didn't work. Any idea?
All the values that comes from SelectedItems[0].SubItems[0] is of type int.
© Stack Overflow or respective owner